package com.mdd.admin.service.order;

import com.mdd.admin.validate.order.PreAuthorizationRecordCreateValidate;
import com.mdd.admin.validate.order.PreAuthorizationRecordSearchValidate;
import com.mdd.admin.validate.order.PreAuthorizationRecordUpdateValidate;
import com.mdd.admin.vo.order.PreAuthorizationRecordDetailVo;
import com.mdd.admin.vo.order.PreAuthorizationRecordListedVo;
import com.mdd.common.base.page.PageValidate;
import com.mdd.common.core.PageResult;

/**
 * 预授权记录服务接口类
 * @author LikeAdmin
 */
public interface IPreAuthorizationRecordService {

    /**
     * 预授权记录列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<OrderPreAuthorizationRecordListedVo>
     */
    PageResult<PreAuthorizationRecordListedVo> list(PageValidate pageValidate, PreAuthorizationRecordSearchValidate searchValidate);

    /**
     * 预授权记录详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return OrderPreAuthorizationRecordDetailVo
     */
    PreAuthorizationRecordDetailVo detail(Long id);

    /**
     * 预授权记录新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(PreAuthorizationRecordCreateValidate createValidate);

    /**
     * 预授权记录编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(PreAuthorizationRecordUpdateValidate updateValidate);

    /**
     * 预授权记录删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Long id);

}
